package DesignPatternFactory;

import java.util.ArrayList;

public class Hardware extends Produit{

	public Hardware(String denomination, String anneeCreation, double prix)
	{	
		this.denomination = denomination ;
		this.anneeCreation = anneeCreation ;
		this.prix = prix;
		this.clients = new ArrayList<String>();
	}
	

	@Override
	public void AddClient(String nomClient) {
		this.clients.add(nomClient);
		System.out.println("le client est" +nomClient) ;
		System.out.println("dans la classe concrete : "+this.clients.size()) ;	
	}
	
}